package top.lichunsheng.vo;


import lombok.*;

import java.io.Serializable;

/**
 * 文件分片上传参数
 *
 * @author 16973
 */
@Data
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class FileMultipartUploadVO implements Serializable {
    /**
     * 文件名称
     */
    private String objectName;

    private Integer chunkSize;

    public void checkNull() {
        if (this.objectName == null || this.chunkSize == null) {
            throw new RuntimeException("请检查您的请求参数");
        }
    }
}
